<?php
namespace Home\Controller;
use Think\Controller;
// +----------------------------------------------------------------------
// | Fanwe 方维p2p借贷系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 云淡风轻(88522820@qq.com)
// +----------------------------------------------------------------------

class LoginoutController extends  BaseController{
	//首页
    public function index()
    {
        require_once APP_ROOT_PATH."system/libs/user.php";
        $root['response_code'] = 0;
        $result = loginout_user();
        if($result){
            $root['response_code'] = 1;
            $root['show_err'] = '退出成功';
        }else{
            $root['show_err'] = '退出失败';
        }
        output($root);
    }
	
}
?>